import java.awt.image.BufferedImage;

import javax.media.jai.JAI;
import javax.media.jai.PlanarImage;
import javax.swing.JFrame;
import javax.swing.JScrollPane;

import com.sun.media.jai.widget.DisplayJAI;


public class inverteImagem {

	public inverteImagem() {
		
	}

	public static void main(String[] args) {
		PlanarImage entrada = JAI.create("fileload", "matheus.jpg");
		PlanarImage saida = JAI.create("invert", entrada);

		JFrame frame = new JFrame();
		frame.getContentPane().add(new janelasSincronas(entrada, saida));
		frame.setSize(800,500);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.setVisible(true);
	

	}

}
